class Fxjewellry$Timekeeper
{
  long startTime = 0L;
  long pausedTime = 0L;
  long pausedTemp = 0L;
  long state = 0L;

  public Fxjewellry$Timekeeper(Fxjewellry paramFxjewellry) {
    this.startTime = System.currentTimeMillis();
  }

  public long getMillis() {
    return System.currentTimeMillis() - this.startTime - this.pausedTime;
  }

  public long getSeconds() {
    return getMillis() / 1000L;
  }

  public long getMinutes() {
    return getSeconds() / 60L;
  }

  public long getHours() {
    return getMinutes() / 60L;
  }

  public String getRuntimeString() {
    long l1 = getHours();
    long l2 = getMinutes();
    long l3 = getSeconds();
    l2 %= 60L;
    l3 %= 60L;
    return l1 + ":" + l2 + ":" + l3;
  }

  public void setPaused() {
    this.state = 1L;
    this.pausedTemp = System.currentTimeMillis();
  }

  public long setResumed() {
    this.state = 0L;
    return this.pausedTime += System.currentTimeMillis() - this.pausedTemp;
  }

  public long calcPerHour(long paramLong) {
    return calcPerHour(paramLong);
  }

  public long calcPerHour(double paramDouble) {
    double d = getMillis();
    return ()(paramDouble / d * 3600000.0D);
  }

  public double calcPerSecond(long paramLong) {
    double d1 = paramLong;
    double d2 = getMillis();
    return d1 / d2 * 1000.0D;
  }
}